package com.totoro.mapstruct.mapstruct_mapping_from_map;

import org.mapstruct.MapMapping;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Date;
import java.util.Map;

/**
 * Created by Niki on 2018/8/8 14:55
 */
@Mapper
public interface MapMapper {
    MapMapper instance = Mappers.getMapper(MapMapper.class);

    @MapMapping(valueDateFormat = "yyyy-MM-dd HH:mm:ss")
    Map<String, String> dateMaptoStringMap(Map<String, Date> sourceMap);
}
